﻿namespace WholeSlideImageLibrary.Formats.Dmetrix
{
    /// <summary>
    /// 附加图片的信息
    /// </summary>
    internal class DmetrixAssociatedImageInfo
    {
        public DmetrixAssociatedImageInfo(string name, int width, int height, long offset, int length, EncodedImageFileFormat format)
        {
            Name = name;
            Width = width;
            Height = height;
            Offset = offset;
            Length = length;
            Format = format;
        }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; }

        /// <summary>
        /// 宽
        /// </summary>
        public int Width { get;  }

        /// <summary>
        /// 高
        /// </summary>
        public int Height { get;  }

        /// <summary>
        /// 偏移量
        /// </summary>
        public long Offset { get;  }

        /// <summary>
        /// 长度
        /// </summary>
        public int Length { get; }

        /// <summary>
        /// 文件格式
        /// </summary>
        public EncodedImageFileFormat Format { get;  }
    }
}
